<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<style type="text/css">
.dateWidth1{
   width:195px;
}
.select_width{
   width:130px;
}
</style>
<x:parse xml="${param.xmlstr}" var="xmlData" />

<table class="t_css" width="100%" border="0" cellpadding="0" id="basicInfo"
	cellspacing="1">
	<tr>
		<td   colspan="5" class="t_bar2">基本信息</td>
	</tr>
	<tr>
		<td   align="right" ><span class="color_red">*</span>项目名称：</td>
		<td  colspan="4">
			<input id="zh_title" name="proposal/zh_title" label="项目名称" type="text" required class="input_css required maxlength:100"  style="width: 725px;" maxlength="100" value="<x:out select="$xmlData/data/proposal/zh_title" />"/>
		</td>
	</tr>
	<tr>
	<td align="right">单位名称：
	<input type="hidden" name="organizations/organization[0]/sequence_no" value="1" >
	<input type="hidden" name="organizations/organization[0]@submit_org" value="1" >
	<input type="hidden" name="organizations/organization[0]/org_code" value="<x:out select="$xmlData/data/organizations/organization[@submit_org=1]/org_code"/>" ></td>
    <td ><span name="organizations/organization[0]/org_name"><x:out select="$xmlData/data/organizations/organization[@submit_org='1']/org_name" /> </span></td>
     <td align="right"><span class="color_red">*</span>归口管理部门：</td>
		<td colspan="2">
			<c:set var="recomend_org"><x:out select="$xmlData/data/proposal/recomend_org_value" /></c:set>
			<c:set var="sqOrgCode"><x:out select="$xmlData/data/organizations/organization[@submit_org=1]/org_code"/></c:set>
			<cpt:select id="recomend_org" sqlParamVal="{currentorgcode:${sqOrgCode }}"  key="proposal_tjbm"  value="${recomend_org}" onChange="initControlValue(this.id);" style="width:85%"></cpt:select>
			<input type="hidden" id="recomend_org_value" name="proposal/recomend_org_value" class="required" value="${recomend_org}" label="归口管理部门">
			<input type="hidden" name="proposal/recomend_org_name" value="<x:out select="$xmlData/data/proposal/recomend_org_name" />">
		</td>
	</tr>
	<tr>
	<td align="right"><span class="color_red">*</span>项目联系人：</td>
	<td ><input name="proposal/contact_psn_cname" label="项目联系人" type="text" required class="input_css required"   maxlength="100" value="<x:out select="$xmlData/data/proposal/contact_psn_cname" />"/></td>
	<td align="right"><span class="color_red">*</span>联系电话：</td>
	<td colspan="2"><input  name="proposal/contact_psn_tel" label="联系电话" type="text" required class="input_css required"   maxlength="50" value="<x:out select="$xmlData/data/proposal/contact_psn_tel" />"/> </td>
	</tr>
	<tr>
	<td align="right"><span class="color_red">*</span>电子邮箱：</td>
	<td ><input  name="proposal/contact_psn_email" label="电子邮箱" type="text" required class="input_css required email"   maxlength="100" value="<x:out select="$xmlData/data/proposal/contact_psn_email" />"/> </td>
	<td  align="right" ><span class="color_red">*</span>申报日期：</td>
		<td colspan="2">
			<c:set var="submit_date"><x:out select="$xmlData/data/proposal/submit_date" /></c:set>
			<cpt:date id="submit_date" name="proposal/submit_date" value="${submit_date}" className=" required date" label="申报日期"></cpt:date> 
		</td>
	</tr>
	<tr>
		<td   colspan="5" class="t_bar2">申报人信息</td>
	</tr>
    <tr>
    <td  align="right" width="15%">姓名：
    <input type="hidden" id="submit_psn" name="zh_persons/zh_person[00]@submit_psn" value="1" />
	<input type="hidden" name="zh_persons/zh_person[00]/basic_info/psn_code" value="<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/psn_code" />"/>
    </td>
	<td width="30%">
		 <span name="zh_persons/zh_person[00]/basic_info/zh_name" ><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/zh_name" /></span>
	</td>
	<td  align="right" width="15%">性别：</td>
	<td width="25%">
		<c:set var="gender"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/gender_value" /></c:set> 
		<c:if test="${gender == 'M' }">男</c:if>
		<c:if test="${gender == 'F' }">女</c:if>
		<input type="hidden" name="zh_persons/zh_person[00]/basic_info/gender_value" value="<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/gender_value" />"/>
	</td>
	<td rowspan="5" align="center"  width="15%">
	<c:set var="file_code8"><x:out select="$xmlData/data/content/file_code8" /></c:set>
	<div id="uploadsuccess8">
	<c:choose>
	<c:when test="${file_code8==''}">
		<img id="orgphotoImg" src="${res_app}/images/app/photo_01.jpg"  style="width:96px;height:125px" />
	 </c:when>
	<c:otherwise>
		 <img id="orgphotoImg" src="${ctx}/file/ajax-filedownload?fileCode=<x:out select="$xmlData/data/content/file_code8" />"  style="width:130px;height:159px" />
	</c:otherwise>
	</c:choose>
	<br/>
	<a href="#" style="cursor: pointer;" onclick="cilckFile('org')" id="aaa"><span style="color: blue;">[上传照片]</span></a><BR />
	</div>
	<div id="file8" style="text-align:center">
		   <input type="hidden" name="content/file_code8" id="content_file_code8" label="申报人照片"  class="required " value="<x:out select="$xmlData/data/content/file_code8" />" />
	</div>
	 </td>	
	</tr>
	<tr>
	<td  align="right" >出生年月：</td>
	<td>
	<span name="zh_persons/zh_person[00]/basic_info/birthday" ><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/birthday" /></span>
    <td  align="right"><span class="color_red">*</span>政治面貌：</td>
	<td ><input  name="zh_persons/zh_person[00]/basic_info/politics_status" label="申报人政治面貌" type="text"   class="input_css required "  value="<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/politics_status" />"/></td>
	</tr>
	<tr>
	<td  align="right">行政职务：</td>
	<td ><span name="zh_persons/zh_person[00]/basic_info/position" ><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/position" /></span></td> 
    <td  align="right">技术职称：</td>
    <td ><span name="zh_persons/zh_person[00]/basic_info/prof_title_name" ><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/prof_title_name" /></span>
	<input type="hidden" name="zh_persons/zh_person[00]/basic_info/prof_title_value" value="<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/prof_title_value" />"/></td>
	</tr>
	<tr>
	<td  align="right" ><span class="color_red">*</span>毕业时间：</td>
	<td>
	<c:set var="graduate"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/graduate" /></c:set>
	<cpt:date id="graduate" name="zh_persons/zh_person[00]/basic_info/graduate" value="${graduate}" className=" required date" label="申报人毕业时间"></cpt:date> 
    <td  align="right" >毕业院校：</td>
	<td  ><span name="zh_persons/zh_person[00]/basic_info/graduate_college" ><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/graduate_college" /></span></td>
	</tr>
	<tr>
	<td  align="right" >学位：</td>
	<td ><span name="zh_persons/zh_person[00]/basic_info/degree_name" ><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/degree_name" /></span>
	<input type="hidden" name="zh_persons/zh_person[00]/basic_info/degree_value" value="<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/degree_value" />"/></td> 
    <td  align="right" >学历：</td>
    <td ><span name="zh_persons/zh_person[00]/basic_info/educate_name" ><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/educate_name" /></span>
    <input type="hidden" name="zh_persons/zh_person[00]/basic_info/educate_value" value="<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/educate_value" />"/></td> 
	</tr>
	<tr>
	<td  align="right" >所学专业：</td>
	<td ><span name="zh_persons/zh_person[00]/basic_info/major" ><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/major" /></span></td>
	<td  align="right" >现从事专业：</td>
	<td colspan="2"><span name="zh_persons/zh_person[00]/contact/major_work" ><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/major_work" /></span></td>
	</tr>
	<tr>
	<td  align="right" ><span class="color_red">*</span>工作单位及部门：</td>
	<td ><input  name="proposal/work_org" label="申报人工作单位及部门" type="text" required class="input_css required"   maxlength="50" value="<x:out select="$xmlData/data/proposal/work_org" />"/> </td>
	<td  align="right" >注册类型：</td>
	<td colspan="2"><span name="organizations/organization[0]/nature_name"><x:out select="$xmlData/data/organizations/organization[@submit_org='1']/nature_name" /></span>
    <input type="hidden" name="organizations/organization[0]/nature_value"  value="<x:out select="$xmlData/data/organizations/organization[@submit_org='1']/nature_value" />"/></td>
	</tr>
	<tr>
	<td  align="right" >申报人电话：</td>
	<td ><span name="zh_persons/zh_person[00]/contact/tel_work" ><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/tel_work" /></span>
	<span name="zh_persons/zh_person[00]/contact/email" style="display: none;"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/email" /></span></td>
	<td  align="right" >申报人手机：</td>
	<td  colspan="2"><span name="zh_persons/zh_person[00]/contact/mobile"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/mobile" /></span></td>
	</tr>
	<tr>
	<td  align="right" nowrap>申报单位联系人：</td>
	<td ><span name="proposal/dw_contact_name"><x:out select="$xmlData/data/proposal/dw_contact_name" /></span></td>
	<td  align="right" nowrap>申报单位联系人电话：</td>
	<td  colspan="2"><span name="proposal/dw_contact_tel"><x:out select="$xmlData/data/proposal/dw_contact_tel" /></span></td>
	</tr>
	<tr>
	<td  align="right" >单位通讯地址：</td>
	<td ><span name="organizations/organization[0]/address"> <x:out select="$xmlData/data/organizations/organization[@submit_org=1]/address" /></span></td>
	<td  align="right">邮政编码：</td>
	<td colspan="2" ><span name="organizations/organization[0]/zip_code"> <x:out select="$xmlData/data/organizations/organization[@submit_org=1]/zip_code" /></span></td>
	</tr>
    </table>

<script type="text/javascript">

function cilckFile(flag){
	var fileCode = $('#content_file_code8').val();
	if(fileCode!=""){
		tb_show("上传照片", "<c:out value="${ctx}"/>/proposal/edit/dialog/updatePhoto?fileCode="+fileCode+"&flag="+flag+"&TB_iframe=true&height=250&width=530", false);
	}else{
		
		tb_show("上传照片", "<c:out value="${ctx}"/>/proposal/edit/dialog/updatePhoto?flag="+flag+"&TB_iframe=true&height=250&width=530", false);
	}
}
</script>

